package io.gitee.hefren.hhdemoapollo.controller;

import io.gitee.hefren.hhdemoapollo.conf.DemoConf;
import io.gitee.hefren.hhdemoapollo.conf.DemoPreConf;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2024/5/10
 * @Author lifei
 */
@RestController
@RequestMapping(value = "/demoConfController")
public class DemoConfController {

    @Resource
    private DemoConf demoConf;

    @Resource
    private DemoPreConf demoPreConf;

    @RequestMapping(value = "/findDemoConf")
    public String findDemoConf() {
        return demoConf.getA() + ", " + demoPreConf;
    }
}
